/// code : 200
/// msg : "success"
/// data : {"productPageVO":{"pageNum":1,"pageSize":10,"pages":1,"total":2,"list":[{"productId":120,"productName":"hhy-3","loanAmount":"2000.00","loanPeriod":"33","loanRate":"12.00","loanMinRate":0.12,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/5683D670340C4284AA52D1CDD0FF2785.jpg","linkUrl":"https://www.baidu.com/","loanCount":1203,"productTags":"最热","productTagList":["最热"],"isH5PopConfig":null},{"productId":119,"productName":"hhy-2","loanAmount":"323112.00","loanPeriod":"4","loanRate":"3.00","loanMinRate":0.03,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/550775AE78234ED0A7D9DB72C2CFD254.jpg","linkUrl":"https://go.dev/","loanCount":10012,"productTags":"最新","productTagList":["最新"],"isH5PopConfig":null}]}}

class ProductBean {
  ProductBean({
      this.code, 
      this.msg, 
      this.data,});

  ProductBean.fromJson(dynamic json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? Data.fromJson(json['data']) : null;
  }
  num? code;
  String? msg;
  Data? data;
ProductBean copyWith({  num? code,
  String? msg,
  Data? data,
}) => ProductBean(  code: code ?? this.code,
  msg: msg ?? this.msg,
  data: data ?? this.data,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = code;
    map['msg'] = msg;
    if (data != null) {
      map['data'] = data?.toJson();
    }
    return map;
  }

}

/// productPageVO : {"pageNum":1,"pageSize":10,"pages":1,"total":2,"list":[{"productId":120,"productName":"hhy-3","loanAmount":"2000.00","loanPeriod":"33","loanRate":"12.00","loanMinRate":0.12,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/5683D670340C4284AA52D1CDD0FF2785.jpg","linkUrl":"https://www.baidu.com/","loanCount":1203,"productTags":"最热","productTagList":["最热"],"isH5PopConfig":null},{"productId":119,"productName":"hhy-2","loanAmount":"323112.00","loanPeriod":"4","loanRate":"3.00","loanMinRate":0.03,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/550775AE78234ED0A7D9DB72C2CFD254.jpg","linkUrl":"https://go.dev/","loanCount":10012,"productTags":"最新","productTagList":["最新"],"isH5PopConfig":null}]}

class Data {
  Data({
      this.productPageVO,});

  Data.fromJson(dynamic json) {
    productPageVO = json['productPageVO'] != null ? ProductPageVo.fromJson(json['productPageVO']) : null;
  }
  ProductPageVo? productPageVO;
Data copyWith({  ProductPageVo? productPageVO,
}) => Data(  productPageVO: productPageVO ?? this.productPageVO,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (productPageVO != null) {
      map['productPageVO'] = productPageVO?.toJson();
    }
    return map;
  }

}

/// pageNum : 1
/// pageSize : 10
/// pages : 1
/// total : 2
/// list : [{"productId":120,"productName":"hhy-3","loanAmount":"2000.00","loanPeriod":"33","loanRate":"12.00","loanMinRate":0.12,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/5683D670340C4284AA52D1CDD0FF2785.jpg","linkUrl":"https://www.baidu.com/","loanCount":1203,"productTags":"最热","productTagList":["最热"],"isH5PopConfig":null},{"productId":119,"productName":"hhy-2","loanAmount":"323112.00","loanPeriod":"4","loanRate":"3.00","loanMinRate":0.03,"logo":"http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/550775AE78234ED0A7D9DB72C2CFD254.jpg","linkUrl":"https://go.dev/","loanCount":10012,"productTags":"最新","productTagList":["最新"],"isH5PopConfig":null}]

class ProductPageVo {
  ProductPageVo({
      this.pageNum, 
      this.pageSize, 
      this.pages, 
      this.total, 
      this.list,});

  ProductPageVo.fromJson(dynamic json) {
    pageNum = json['pageNum'];
    pageSize = json['pageSize'];
    pages = json['pages'];
    total = json['total'];
    if (json['list'] != null) {
      list = [];
      json['list'].forEach((v) {
        list?.add(ProductList.fromJson(v));
      });
    }
  }
  num? pageNum;
  num? pageSize;
  num? pages;
  num? total;
  List<ProductList>? list;
ProductPageVo copyWith({  num? pageNum,
  num? pageSize,
  num? pages,
  num? total,
  List<ProductList>? list,
}) => ProductPageVo(  pageNum: pageNum ?? this.pageNum,
  pageSize: pageSize ?? this.pageSize,
  pages: pages ?? this.pages,
  total: total ?? this.total,
  list: list ?? this.list,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['pageNum'] = pageNum;
    map['pageSize'] = pageSize;
    map['pages'] = pages;
    map['total'] = total;
    if (list != null) {
      map['list'] = list?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// productId : 120
/// productName : "hhy-3"
/// loanAmount : "2000.00"
/// loanPeriod : "33"
/// loanRate : "12.00"
/// loanMinRate : 0.12
/// logo : "http://china-loan-market.oss-cn-beijing.aliyuncs.com/img/5683D670340C4284AA52D1CDD0FF2785.jpg"
/// linkUrl : "https://www.baidu.com/"
/// loanCount : 1203
/// productTags : "最热"
/// productTagList : ["最热"]
/// isH5PopConfig : null

class ProductList {
  ProductList({
      this.productId, 
      this.productName, 
      this.loanAmount, 
      this.loanPeriod, 
      this.loanRate, 
      this.loanMinRate, 
      this.logo, 
      this.linkUrl, 
      this.loanCount, 
      this.productTags, 
      this.productTagList, 
      this.isH5PopConfig,});

  ProductList.fromJson(dynamic json) {
    productId = json['productId'];
    productName = json['productName'];
    loanAmount = json['loanAmount'];
    loanPeriod = json['loanPeriod'];
    loanRate = json['loanRate'];
    loanMinRate = json['loanMinRate'];
    logo = json['logo'];
    linkUrl = json['linkUrl'];
    loanCount = json['loanCount'];
    productTags = json['productTags'];
    productTagList = json['productTagList'] != null ? json['productTagList'].cast<String>() : [];
    isH5PopConfig = json['isH5PopConfig'];
  }
  num? productId;
  String? productName;
  String? loanAmount;
  String? loanPeriod;
  String? loanRate;
  num? loanMinRate;
  String? logo;
  String? linkUrl;
  num? loanCount;
  String? productTags;
  List<String>? productTagList;
  dynamic isH5PopConfig;
  ProductList copyWith({  num? productId,
  String? productName,
  String? loanAmount,
  String? loanPeriod,
  String? loanRate,
  num? loanMinRate,
  String? logo,
  String? linkUrl,
  num? loanCount,
  String? productTags,
  List<String>? productTagList,
  dynamic isH5PopConfig,
}) => ProductList(  productId: productId ?? this.productId,
  productName: productName ?? this.productName,
  loanAmount: loanAmount ?? this.loanAmount,
  loanPeriod: loanPeriod ?? this.loanPeriod,
  loanRate: loanRate ?? this.loanRate,
  loanMinRate: loanMinRate ?? this.loanMinRate,
  logo: logo ?? this.logo,
  linkUrl: linkUrl ?? this.linkUrl,
  loanCount: loanCount ?? this.loanCount,
  productTags: productTags ?? this.productTags,
  productTagList: productTagList ?? this.productTagList,
  isH5PopConfig: isH5PopConfig ?? this.isH5PopConfig,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['productId'] = productId;
    map['productName'] = productName;
    map['loanAmount'] = loanAmount;
    map['loanPeriod'] = loanPeriod;
    map['loanRate'] = loanRate;
    map['loanMinRate'] = loanMinRate;
    map['logo'] = logo;
    map['linkUrl'] = linkUrl;
    map['loanCount'] = loanCount;
    map['productTags'] = productTags;
    map['productTagList'] = productTagList;
    map['isH5PopConfig'] = isH5PopConfig;
    return map;
  }

}